package com.joolun.activity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 活动奖品对象 activity_award
 *
 * @author www.joolun.com
 * @date 2022-11-22
 */
@Data
@TableName("activity_award")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "活动奖品对象")
public class ActivityAward extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 活动唯一编码 */
    @Excel(name = "活动唯一编码")
    @ApiModelProperty(required = true,value = "活动编码")
    private String activityCode;

    /** 奖品总码 */
    @Excel(name = "奖品总码")
    @ApiModelProperty(required = true,value = "奖品总码")
    private String awardCode;

    /** 奖品名称 */
    @ApiModelProperty(required = true,value = "奖品名称")
    @Excel(name = "奖品名称")
    private String name;

    /** 开奖状态1、未开奖 2、已开奖 */
    @Excel(name = "开奖状态1、未开奖 2、已开奖")
    @ApiModelProperty(required = true,value = "开奖状态")
    private String status;

    /** 奖品等级 */

    @ApiModelProperty(required = true,value = "奖品等级")
    private Integer level;

    /** 奖品等级 */
    @Excel(name = "奖品等级名称")
    @ApiModelProperty(value = "奖品等级名称")
    @TableField(exist = false)
    private String levelName;

    /** 开奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开奖时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(required = true,value = "开奖时间")
    private Date openTime;

    /** 奖品总数量 */
    @Excel(name = "奖品总数量")
    @ApiModelProperty(required = true,value = "奖品总数量")
    private Long awardNum;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    private String delFlag;
}
